package com.atao.product.service.impl;


import com.atao.product.Product;
import com.atao.product.service.ProductService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Slf4j
@Service
public class ProductServiceImpl implements ProductService {
    @Override
    public Product getProduct(Long productId) {
        log.info("查询商品:{}", productId);
        Product product = new Product();
        product.setId(productId);
        product.setProductName("iphone");
        product.setNum(100);
        product.setPrice(new BigDecimal(9999));
        return product;
    }
}
